package cn.gs.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;


import cn.gs.dao.SelectLinkManDao;
import cn.gs.dao.SelectLinkManDaoIpml;
import cn.gs.domain.LinkMan;
@Service(value="selectLinkManService")
@Scope("prototype")
public class SelectLinkManServiceImpl implements SelectLinkManService {

	@Resource(name="selectLinkManDao")
	SelectLinkManDao selectLinkManDao;
	public void setSelectLinkManDao(SelectLinkManDao selectLinkManDao) {
		this.selectLinkManDao = selectLinkManDao;
	}
	@Override
	public List<LinkMan> selectLinkMan(String lkm_name, String cust_name, int page) {
		System.out.println("经过Service");
		List<LinkMan> list=selectLinkManDao.selectLinkMan(lkm_name, cust_name, page);
				return list;
	}
	@Override
	public List<LinkMan> selectPageCount(String lkm_name, String cust_name) {
		SelectLinkManDao selectLinkManDao1 =new SelectLinkManDaoIpml();
		List list=selectLinkManDao1.selectPageCount(lkm_name, cust_name);
				return list;
	}
	
	

}
